package com.yifushidai.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import javax.persistence.*;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "SfzUpload")
@Table(name = "tb_sfz_upload")
public class SfzUpload {

    /**
     * 自动编号
     */
    @ApiModelProperty(value = "自动编号")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /**
     * 联网盒mac
     */
    @ApiModelProperty(value = "联网盒mac")
    private String mac;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名")
    private String xm;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别")
    private String xb;

    /**
     * 民族
     */
    @ApiModelProperty(value = "民族")
    private String mz;

    /**
     * 出生
     */
    @ApiModelProperty(value = "出生")
    private String cs;

    /**
     * 住址
     */
    @ApiModelProperty(value = "住址")
    private String zz;

    /**
     * 公民身份证号码
     */
    @ApiModelProperty(value = "公民身份证号码")
    private String gmsfzhm;

    /**
     * 签发机关
     */
    @ApiModelProperty(value = "签发机关")
    private String qfjg;

    /**
     * 有效期起始日期
     */
    @ApiModelProperty(value = "有效期起始日期")
    private String yxqsrq;

    /**
     * 有效期截止日期
     */
    @ApiModelProperty(value = "有效期截止日期")
    private String yxjzrq;

    /**
     * 备用
     */
    @ApiModelProperty(value = "备用")
    private String beiyong;

    /**
     * 正面oss地址
     */
    @ApiModelProperty(value = "正面oss地址")
    @Column(name = "face_img")
    private String faceImg;

    /**
     * 背面oss地址
     */
    @ApiModelProperty(value = "背面oss地址")
    @Column(name = "back_img")
    private String backImg;

    /**
     * 起始时间
     */
    @ApiModelProperty(value = "起始时间")
    @Column(name = "begin_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date beginTime;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
    @Column(name = "end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;
}